package com.kevin.zhangchao.animationtest;

import android.animation.TypeEvaluator;

/**
 * Created by ZhangChao on 2016/12/15.
 */

public class PointEvaluator implements TypeEvaluator<Point>{
    @Override
    public Point evaluate(float fraction, Point startValue, Point endValue) {
        int start=startValue.getRadius();
        int end=endValue.getRadius();
        int result= (int) (start+(end-start)*fraction);
        Point point=new Point(result);
        return point;
    }
}
